package com.wmx.collection;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

//外部比较 需要一个比较类实现Comparator
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Person{
    private String name;
    private int age;
    private Date date;

    Person(String name , int age){
        this.name = name;
        this.age = age;
    }


}
